<!--{include header}-->
<link href="../../static/css/index.css" rel="stylesheet" type="text/css" />
<div id="bdw" class="bdw">
<div id="bd" class="cf">

<!--{if $team['close_time']}-->
<div id="sysmsg-tip" class="sysmsg-tip-deal-close"><div class="sysmsg-tip-top"></div><div class="sysmsg-tip-content"><div class="deal-close"><div class="focus">A oferta está fechada.</div><div id="tip-deal-subscribe-body" class="body"><form id="tip-deal-subscribe-form" method="post" action="/subscribe.php" class="validator"><table><tr>
              <td>Para receber novas ofertas, cadastre seu e-mail:&nbsp;</td><td><input type="text" name="email" class="f-text" value="" require="true" datatype="email" /></td><td>&nbsp;<input class="commit" type="submit" value="" /></td></tr></table></form></div></div><span id="sysmsg-tip-close" class="sysmsg-tip-close">Fechar</span></div><div class="sysmsg-tip-bottom"></div></div>
<!--{/if}-->

<!--{if $order}-->
<div id="sysmsg-tip" ><div class="sysmsg-tip-top"></div><div class="sysmsg-tip-content">
  <h3>Obrigado pela compra!</h3>
    Recebemos seu pedido! <br>
    Uma mensagem com detalhes desta transação foi enviada para seu endereço de email. <br>
    Caso  tenha ocorrido algum erro no pagamento, <a href="/{$city['ename']}/seu_pedido/{$order['id']}">verifique seu pedido e efetue o pagamento</a>
    <span id="sysmsg-tip-close" class="sysmsg-tip-close">Fechar</span></div><div class="sysmsg-tip-bottom"></div></div><div id="deal-default">
<!--{/if}-->
	<div id="deal-default">
		<!--{include block_team_share}-->
		<div id="content">
			<div id="deal-intro" class="cf">
            <h1><!--{if $team['close_time']==0}--><a class="deal-today-link" href="/{$city['ename']}/oferta_do_dia">Baladas Hoje: </a><!--{/if}-->{$team['title']}</h1>
                <div class="main">
                  <div class="deal-buy">
                        <div class="deal-price-tag"></div>
					<!--{if ($team['state']=='soldout')}-->
                        <p class="deal-price"><strong>{$currency}${moneyit3($team['team_price'])}</strong><span class="deal-price-soldout"></span></p>
					<!--{elseif $team['close_time']}-->
                    <p class="deal-price"><strong></strong><span class="deal-price-expire"></span></p>
					<!--{else}-->
                <p class="deal-price"><span><a ${$team['begin_time']<time()?'href="/'.$city['ename'].'/comprar/'.$team['id'].'"':''}></span><img src="/static/css/i/compre-agora-1.png" alt="" width="221" height="62" hspace="5" vspace="10" /></a></p>
                        <!--{/if}-->
                  </div>
      <table border="1" cellspacing="0" class="deal-discount">
                        <tr>
                          <p class="deal-valor"><th colspan="2"><p class="deal-valor">Valor: {$currency}${moneyit3($team['team_price'])}</p></th></p>
                        </tr>
                        <tr>
                            <th>Desconto<br />
                            <span class="deal-porcentagem">${moneyit2((100*($team['market_price'] - $team['team_price'])/$team['market_price']))}%</span></th>
                            <th>Você Economiza<br />
                            <span class="deal-economiza">{$currency}${moneyit3($discount_price)}</span></th>
                        </tr>
                  </table>
					<!--{if $team['close_time']}-->
<div class="deal-box deal-timeleft-off deal-off" id="deal-timeleft" curtime="{$now}000" diff="{$diff_time}000">
						<h3>Oferta expirou em</h3>
						<div class="limitdate-end"><p class="deal-buy-ended">
						 <li><span>${date('d-m-Y', $team['close_time'])}</span></li>
                    </div>
				  </div>
					<!--{else}-->
                    <div class="deal-box deal-timeleft deal-on" id="deal-timeleft" curtime="<?php echo $now; ?>000" diff="<?php echo $diff_time; ?>000">
						      <h3>Tempo restante</h3>
					                        <div class="contador">
						           <div class="limitdate"><ul id="counter">
							<?php if($left_day>0){?>
								<li><span><?php echo $left_hour; ?></span></li>
					            <li><span><?php echo $left_minute; ?></span></li>
					            <li><span><?php echo $left_time; ?></span></li>
					                               <?php }?>
					                           </ul>
					                        </div>
					                      </div>
             </div>
					<!--{/if}-->

				<!--{if $team['close_time']==0}-->
					<!--{if $team['state']=='none'}-->
					<div class="deal-box deal-status" id="deal-status">
						<p class="deal-buy-tip-top"><strong>{$team['now_number']}</strong> já compraram</p>
						<div class="progress-pointer" style="padding-left:{$bar_size-$bar_offset}px;"><span></span></div>
						<div class="progress-bar"><div class="progress-left" style="width:{$bar_size-$bar_offset}px;"></div><div class="progress-right "></div></div>
						<div class="cf"><div class="min">0</div><div class="max">{$team['min_number']}</div></div>
						<p class="deal-buy-tip-btm">Faltam <strong>{$team['min_number']-$team['now_number']}</strong> para ativar a oferta! </p>
					</div>
					<!--{else}-->
					<div class="deal-box deal-status deal-status-open" id="deal-status">
						<p class="deal-buy-tip-top"><strong>{$team['now_number']}</strong> baladeiros já compraram</p>
					<!--{if $team['max_number']&&$team['max_number']>$team['now_number']}-->
						<p class="deal-buy-tip-btm">Ainda disponivel: <strong>{$team['max_number']-$team['now_number']}</strong>, compre agora</p>
					<!--{/if}-->
						<p class="deal-buy-on" style="line-height:200%;"><img src="/static/css/i/deal-buy-succ.gif"/> Balada está ativa! <!--{if $team['max_number']>$team['now_number']||$team['max_number']==0}--><br/>
<span class="deal-buy-tip-btm">Seu cupom pode ser liberado para uso no mesmo dia, confira as regras na oferta.</span>Minimo para ativar esta oferta é:<strong>{$team['min_number']}</strong> baladeiros</p>
					<!--{/if}-->
					</div>
					<!--{/if}-->
				<!--{else}-->
					<div class="deal-box deal-status deal-status-{$team['state']}" id="deal-status"><div class="deal-buy-{$team['state']}"></div>
					<p class="deal-buy-tip-total">total de <strong>{$team['now_number']}</strong> baladeiros</p></div>
				<!--{/if}-->
				</div>
                <div class="side">
                    <div class="deal-buy-cover-img" id="team_images">
					<!--{if $team['image1']||$team['image2']}-->
						<div class="mid">
							<ul>
								<li class="first"><img src="${team_image($team['image'])}"/></li>
							<!--{if $team['image1']}-->
								<li><img src="${team_image($team['image1'])}"/></li>
							<!--{/if}-->
							<!--{if $team['image2']}-->
								<li><img src="${team_image($team['image2'])}"/></li>
							<!--{/if}-->
							</ul>
							<div id="img_list">
								<a ref="1" class="active">1</a>
							<!--${$imageindex=1;}-->
							<!--{if $team['image1']}-->
								<a ref="${++$imageindex}" >{$imageindex}</a>
							<!--{/if}-->
							<!--{if $team['image2']}-->
								<a ref="${++$imageindex}" >{$imageindex}</a>
							<!--{/if}-->
							</div>
						</div>
						<!--{else}-->
							<img src="${team_image($team['image'])}" width="440" height="280" />
						<!--{/if}-->
					</div>
				<!--{if strip_tags($team['summary'])!=$team['summary']}-->{$team['summary']}<!--{else}--><div class="digest"><br />${nl2br(strip_tags($team['summary']))}</div><!--{/if}-->
                </div>
            </div>
            <div id="deal-stuff" class="cf">
                <div class="clear box ${($partner&&!option_yes('teamwhole'))?'box-split':''}">
                    <div class="box-top"></div>
                    <div class="box-content cf">
                        <div class="main" id="team_main_side">
						<!--{if trim(strip_tags($team['detail']))}-->
                            <h2 id="detail">Detalhes</h2>
							<div class="blk detail">{$team['detail']}</div>
						<!--{/if}-->
						<!--{if trim(strip_tags($team['notice']))}-->
							<h2 id="detailit">Dicas</h2>
							<div class="blk cf">{$team['notice']}</div>
						<!--{/if}-->
						<!--{if trim(strip_tags($team['userreview']))}-->
							<h2 id="userreview">Recomendações</h2>
							<div class="blk review">${userreview($team['userreview'])}</div>
						<!--{/if}-->
						<!--{if trim(strip_tags($team['systemreview']))}-->
							<h2 id="systemreview">{$INI['system']['abbreviation']} disse</h2>
							<div class="blk review">{$team['systemreview']}</div>
						<!--{/if}-->
						</div>

                        <div class="side" id="team_partner_side_${(!option_yes('teamwhole')&&abs(intval($partner['id'])))?1:0}">
                            <div id="side-Business">
								<h2>{$partner['title']}</h2>
								<div style="margin-top:10px;">{$partner['location']}</div>
								<div style="margin-top:10px;"><a href="{$partner['homepage']}" target="_blank">${domainit($partner['homepage'])}</a></div>
								<!--{include block_block_partnermap}-->
							</div>
						</div>

                        <div class="clear"></div>
                    </div>
                    <div class="box-bottom"></div>
                </div>
            </div>
    </div>
    <div id="sidebar">

		<!--{include block_side_invite}-->
		<!--{include block_side_bulletin}-->
		<!--{include block_side_flv}-->
		<!--{include block_side_others_seconds}-->
		<!--{include block_side_ask}-->
		<!--{include block_side_others}-->
		<!--{include block_side_vote}-->
		<!--{include block_side_business}-->
		<!--{include block_side_subscribe}-->
	</div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
